.class Lcom/kwad/sdk/splashscreen/a/c$2;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/kwad/sdk/splashscreen/a/c;->a()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/kwad/sdk/splashscreen/a/c;


# direct methods
.method constructor <init>(Lcom/kwad/sdk/splashscreen/a/c;)V
    .locals 0

    iput-object p1, p0, Lcom/kwad/sdk/splashscreen/a/c$2;->a:Lcom/kwad/sdk/splashscreen/a/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-object p1, p0, Lcom/kwad/sdk/splashscreen/a/c$2;->a:Lcom/kwad/sdk/splashscreen/a/c;

    invoke-static {p1}, Lcom/kwad/sdk/splashscreen/a/c;->b(Lcom/kwad/sdk/splashscreen/a/c;)I

    move-result p1

    if-gtz p1, :cond_0

    iget-object p1, p0, Lcom/kwad/sdk/splashscreen/a/c$2;->a:Lcom/kwad/sdk/splashscreen/a/c;

    iget-object p1, p1, Lcom/kwad/sdk/splashscreen/a/c;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object p1, p1, Lcom/kwad/sdk/splashscreen/b;->a:Lcom/kwad/sdk/api/KsSplashScreenAd$SplashScreenAdInteractionListener;

    if-eqz p1, :cond_0

    invoke-interface {p1}, Lcom/kwad/sdk/api/KsSplashScreenAd$SplashScreenAdInteractionListener;->onSkippedAd()V

    :cond_0
    iget-object p1, p0, Lcom/kwad/sdk/splashscreen/a/c$2;->a:Lcom/kwad/sdk/splashscreen/a/c;

    iget-object p1, p1, Lcom/kwad/sdk/splashscreen/a/c;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object p1, p1, Lcom/kwad/sdk/splashscreen/b;->f:Lcom/kwad/sdk/splashscreen/b/a;

    if-eqz p1, :cond_1

    new-instance p1, Lorg/json/JSONObject;

    invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v0, "duration"

    iget-object v1, p0, Lcom/kwad/sdk/splashscreen/a/c$2;->a:Lcom/kwad/sdk/splashscreen/a/c;

    iget-object v1, v1, Lcom/kwad/sdk/splashscreen/a/c;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v1, v1, Lcom/kwad/sdk/splashscreen/b;->f:Lcom/kwad/sdk/splashscreen/b/a;

    invoke-virtual {v1}, Lcom/kwad/sdk/splashscreen/b/a;->a()J

    move-result-wide v1

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/kwad/sdk/core/d/b;->a(Ljava/lang/Throwable;)V

    :goto_0
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/c$2;->a:Lcom/kwad/sdk/splashscreen/a/c;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/a/c;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->d:Lcom/kwad/sdk/core/response/model/AdTemplate;

    const/4 v1, 0x1

    invoke-static {v0, v1, p1}, Lcom/kwad/sdk/core/g/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;ILorg/json/JSONObject;)V

    :cond_1
    return-void
.end method
